<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>赛马办公系统</title>
</head>
<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css" />
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab_m left">
  <tr>
  <tr>
    <td colspan="2" class="zctop"><span class="font14 zc_bt">子菜单项设置</span></td>
  <s:iterator value="sysFuncs" status="sysFunc" id="sysFunc1">
	  <tr>
	    <td class="w1"><div class="cd_img"><img src="${ctx}/images/menu/${menuImage}.gif"/></div><s:property value="menuCodeGroup"/>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="funcName"/> </td>
	    <td width="30%"><span onclick=" modifyFunc('${funcId}');" style="cursor: pointer;"> 编辑</span> <span onclick=" deleteFunc('${funcId}');" style="cursor: pointer;">删除</span></td>
	  </tr>
			<s:iterator value="#sysFunc1.sysFuncs" status="sysFunc1" id="sysFunc2">
			  <tr>
			    <td colspan="2" class="w1 cd_r3bg">
						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bor_none">
						  <tr>
							<td><div class="cd_img2"><img src="${ctx}/images/menu/${menuImage}.gif"/></div><s:property value="#sysFunc2.menuCodeGroup"/>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="#sysFunc2.funcName"/></td>
							<td width="30%"><span onclick=" modifyFunc('${funcId}');" style="cursor: pointer;">编辑</span> <span onclick=" deleteFunc('${funcId}');" style="cursor: pointer;">删除</span></td>
						  </tr>
						</table>
			    </td>
			  </tr>
	       </s:iterator>
  </s:iterator>
    </tr>
     <tr>
    <td colspan="2" class="zd_z center"><a href="${ctx}/func/func!preCreate.action?sysFunc.funcId=${sysFunc.funcId}" target="mright"><img src="${ctx}/images/main/zd_z.gif" /></a></td>
    </tr>
</table>
</body>
</html>
<script type="text/javascript">
function modifyFunc(funcId){
  window.location = "${ctx}/func/func!preModify.action?sysFunc.funcId="+funcId;
}

function deleteFunc(funcId){
  if(window.confirm('确定要删除该菜单节点吗?')){
  		window.location = "${ctx}/func/func_delete.action?sysFunc.funcId="+funcId;
  }
  
}

</script>
